package Mangos::DB::Characters::Groups;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'groups',

    columns => 
    [
        leaderGuid     => { type => 'integer', not_null => 1 },
        mainTank       => { type => 'integer', not_null => 1 },
        mainAssistant  => { type => 'integer', not_null => 1 },
        lootMethod     => { type => 'integer', not_null => 1 },
        looterGuid     => { type => 'integer', not_null => 1 },
        lootThreshold  => { type => 'integer', not_null => 1 },
        icon1          => { type => 'integer', not_null => 1 },
        icon2          => { type => 'integer', not_null => 1 },
        icon3          => { type => 'integer', not_null => 1 },
        icon4          => { type => 'integer', not_null => 1 },
        icon5          => { type => 'integer', not_null => 1 },
        icon6          => { type => 'integer', not_null => 1 },
        icon7          => { type => 'integer', not_null => 1 },
        icon8          => { type => 'integer', not_null => 1 },
        isRaid         => { type => 'integer', not_null => 1 },
        difficulty     => { type => 'integer', default => '0', not_null => 1 },
        raiddifficulty => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'leaderGuid' ],
);

1;

package Mangos::DB::Characters::Groups::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::Groups' }

__PACKAGE__->make_manager_methods('groups');

1;
